package com.ffcc.fitness.coach.mapper;

import com.ffcc.fitness.coach.pojo.entity.Coach;
import com.ffcc.fitness.coach.pojo.vo.CoachInfo;
import com.ffcc.fitness.coach.pojo.vo.CoachVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CoachMapper {

    void insert(Coach coach);

    Coach selectByUsername(String username);

    void update(Coach coach);

    CoachVO selectCoachByUserId(Long userId);

    /**
     * 根据用户ID查询教练信息
     * @param userId 用户ID
     * @return 教练信息
     */
    CoachInfo selectByUserId(Long userId);
}
